package com.inventory.api.vo;

import com.inventory.api.entity.StockTransaction;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by lihu on 2018/2/2.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StockTransactionVo {

    private String productName;

    private int stockQuantityRatio;

    private int stockPrice;

    /**
     * 个
     */
    private int single = 0;

    /**
     * 件
     */
    private int whole = 0;


    public StockTransactionVo(StockTransaction stockTransaction) {
        productName = stockTransaction.getProductName();
        stockQuantityRatio = stockTransaction.getStockQuantityRatio();
        stockPrice = stockTransaction.getStockPrice();
        single = stockTransaction.getSingle();
        whole = stockTransaction.getWhole();
    }


}
